function afficheDiv(element) {
	onglet = element.id;
	div = onglet.replace("_onglet", "_div");
	if (document.getElementById(div).style.display == '') {
		document.getElementById(div).style.display = 'none';
		document.getElementById(onglet).removeAttribute("class");
	} else {
		masquerLesOnglets();
		document.getElementById(div).style.display = '';
		document.getElementById(onglet).setAttribute("class", "current");
	}
}

function masquerLesOnglets() {
	lesDiv = document.getElementsByClassName('onglet');

	var i;
	for (i = 0; i < 5; i++) {
		document.getElementById(lesDiv[i].id.replace("_div", "_onglet")).removeAttribute("class");
		lesDiv[i].style.display = 'none';
	}
}

